package com.violet.domain.po;

import com.baomidou.mybatisplus.annotation.TableName;
import com.violet.annotation.transition.*;
import lombok.Data;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

@Data
@Accessors(chain = true)
@TableName("category")
public class Category implements PO {
    @CNoCopy
    @TNoTransitionWithDefaultId(prefix = "C")
    private String id;

    private String name;
    private String description;
    private Boolean status;

    @CNoCopy
    @TNoTransition
    private String image;

    @CNoCopy
    @TDefaultValue
    private Integer productCount;
    @CNoCopy
    @TDefaultValue
    private LocalDateTime createTime;
    @CAutoUpdate
    @TDefaultValue
    private LocalDateTime updateTime;
}
